package cn.net.vote.data.service.imple;

import cn.net.vote.data.domain.PageData;
import cn.net.vote.data.mapper.UserMapper;
import cn.net.vote.data.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import cn.net.vote.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
* Title: UserServiceImpl
* Description:
* 用户操作实现类 
* Version:1.0.0  
* @author pancm
* @date 2018年1月9日
 */
@Service
public class UserServiceImpl implements IUserService {
	@Autowired
	private UserMapper userMapper;

	/**
	 * 【描 述】：<查询用户方法>
	 * @param page
	 * @return
	 * @see cn.net.vote.data.service.IUserService#findAllUserlistPage(cn.net.vote.data.domain.Page)
	 */
	@Override
	public List<PageData> findAllUserlistPage(Page page) {
		List<PageData> userlistPage = userMapper.findAllUserlistPage(page);
		return userlistPage;

	}

    @Override
    public Integer addUser(PageData pd) {
        return userMapper.addUser(pd);
    }

    @Override
    public Integer deleteUser(PageData pd) {
        return userMapper.deleteUser(pd);
    }

    @Override
    public Integer editUser(PageData pd) {
        return userMapper.editUser(pd);
    }

}
